#ifndef LINECHART_H
#define LINECHART_H

#include <QObject>
#include <QPainter>
#include <QVector>
#include <QDebug>
#include <QLinearGradient>
#include <math.h>
//#include <boost/algorithm/minmax.hpp>

class LineChart
{
public:
    LineChart();

    void draw();
    void dataInput(int i, int j, int k);
    qreal findMax();
    qreal findMin();

private:
    QList<qreal> xList;//x轴数据链
    QList<qreal> yDrawList;//的y轴数据链
    QList<qreal> yWaList;//WA的y轴数据链
    QList<qreal> yWbList;//WB的x轴数据链
    int Counter;//记录3条折线的第几个点
};

#endif // LINECHART_H
